<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            border: 1px solid red;
        }

        div:hover{
            /*绝对定位,元素脱离文档流*/
            position:absolute;

            /*让元素相对于初始位置偏移*/
            left: 100px;
            top: 100px;
        }

    </style>
</head>
<body>
<div>div1</div>
<div>div2</div>
<div>div3</div>
</body>
</html>